﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QuanLyKhachSan
{
    public partial class frmLapPhieuThuePhong : Form
    {
        public frmLapPhieuThuePhong()
        {
            InitializeComponent();
        }
        private void frmLapPhieuThuePhong_Load(object sender, EventArgs e)
        {
            //Lấy giờ hệ thống
            string gio = DateTime.Now.ToLongTimeString();
            string ngay = DateTime.Now.ToLongDateString();
            string chuoi = ngay + " " + gio;
            txtNgayHienTai.Text = chuoi;
        }
        private void btnThemKH_Click(object sender, EventArgs e)
        {
            frmQuanLyKhachHang frm = new frmQuanLyKhachHang();
            frm.ShowDialog();
        }

        private void btnThuePhong_Click(object sender, EventArgs e)
        {
            btnInFileExcel.Enabled = true;
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            btnInFileExcel.Enabled = false;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnInFileExcel_Click(object sender, EventArgs e)
        {
            // Thuc hien xong thao tac in thi an button di
            btnInFileExcel.Enabled = false;
        }

        
    }
}